#-*-coding:utf-8-*-
import scrapy
from scrapy.selector import Selector


class WzCommonSpider(scrapy.Spider):
    name = "WzCommon"

    start_urls = ['http://ggzy.wzzbtb.com/wzcms/zfcgcggg/index.htm']

    def parse(self, response):
        span = response.xpath(
            '//div[@class="List-Li FloatL"]/ul/li/span/text()').extract()
        title = response.xpath(
            '//div[@class="List-Li FloatL"]/ul/li/a/@title').extract()

        for i in range(0, 20):
            yield{
                "time": span[i],
                "title": title[i]
            }
